package org.jeecg.modules.ldwx.channel.vo;

import java.util.List;

import org.jeecg.modules.ldwx.channel.entity.TestCpInterface;
import org.jeecg.modules.ldwx.channel.entity.TestCpError;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @Description: 渠道信息
 * @Author: jeecg-boot
 * @Date:   2025-07-01
 * @Version: V1.0
 */
@Data
@Schema(description="渠道信息")
public class TestCpMainPage {

	/**主键*/
	@Schema(description = "主键")
    private String id;
	/**创建人*/
	@Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@Schema(description = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
	@Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@Schema(description = "更新日期")
    private java.util.Date updateTime;
	/**渠道号*/
	@Excel(name = "渠道号", width = 15)
	@Schema(description = "渠道号")
    private String cpid;
	/**渠道名称*/
	@Excel(name = "渠道名称", width = 15)
	@Schema(description = "渠道名称")
    private String cpName;
	/**业务号*/
	@Excel(name = "业务号", width = 15)
	@Schema(description = "业务号")
    private String serviceId;
	/**业务名称*/
	@Excel(name = "业务名称", width = 15)
	@Schema(description = "业务名称")
    private String serviceName;
	/**密钥*/
	@Excel(name = "密钥", width = 15)
	@Schema(description = "密钥")
    private String token;
	/**白名单ip*/
	@Excel(name = "白名单ip", width = 15)
	@Schema(description = "白名单ip")
    private String ip;
	/**启用*/
	@Schema(description = "启用")
    @Excel(name = "启用", width = 15,replace = {"是_1","否_0"} )
    private Integer switchCp;
	
	@ExcelCollection(name="接口授权")
	@Schema(description = "接口授权")
	private List<TestCpInterface> testCpInterfaceList;
	@ExcelCollection(name="报警信息")
	@Schema(description = "报警信息")
	private List<TestCpError> testCpErrorList;
	
}
